MapLibre Native for Android
MapLibre Native for Android
/
com.mapbox.mapboxsdk.location
/
Utils
Utils
class
Utils
Functions
Functions
normalize
Link copied to clipboard
open
fun
normalize
(
angle
:
Float
)
:
Float
Normalizes an angle to be in the [0, 360] range.
shortest
Rotation
Link copied to clipboard
open
fun
shortestRotation
(
heading
:
Float
,
previousHeading
:
Float
)
:
Float
Util for finding the shortest path from the current rotated degree to the new degree.